/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * isRequired(Bollean):是否必填
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动所关联的select的后段字段->bindFieldName
 */

//项目基本信息
const projectFiledList = [{
  type: 'text',
  label: '项目名称',
  isRequired: true,
  bindFieldName: 'name',
  labelWidth: "150px",
  bindFieldVal: ""
},
{
  type: 'select',
  label: '项目负责人',
  placeholder: '请输入查询',
  isRequired: true,
  optionList: [],
  keyName: 'primaryKey',
  valName: 'employeeName',
  displayKey:'managerName',
  isRemote:true,
  bindFieldName: 'manager',
  bindFieldVal: "",
},
{
  type: 'text',
  label: '',
  isHide:true,
  isRequired: true,
  bindFieldName: 'managerName',
  labelWidth: "150px",
  bindFieldVal: ""
},
{
  type: 'select',
  label: '运营团队',
  placeholder: '请选择',
  isRequired: true,
  optionList: [],
  keyName: 'primaryKey',
  valName: 'orgName',
  bindFieldName: 'organizationKey',
  bindFieldVal: ""
},
{
  type: 'select',
  label: '资产包',
  placeholder: '请选择',
  isRequired: true,
  optionList: [],
  keyName: 'primaryKey',
  valName: 'packageName',
  bindFieldName: 'packageKey',
  bindFieldVal: "",
},
{
  type: 'date',
  inputType:"year",
  label: '开始年份',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldName: 'startYear',
},
{
  type: 'select',
  label: '省',
  placeholder: '请选择',
  isRequired: true,
  optionList: [],
  keyName: 'provinceCode',
  valName: 'provinceName',
  bindFieldName: 'provinceCode',
  bindFieldVal: "",
  influenceFiledName: "cityCode"
},
{
  type: 'select',
  label: '市',
  placeholder: '请选择',
  isRequired: true,
  optionList: [],
  keyName: 'cityCode',
  valName: 'cityName',
  bindFieldName: 'cityCode',
  bindFieldVal: "",
  influenceFiledName: "areaCode"
  },
  {
    type: 'select',
    label: '区',
    placeholder: '请选择',
    isRequired: true,
    optionList: [],
    keyName: 'areaCode',
    valName: 'areaName',
    bindFieldName: 'areaCode',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '项目地址',
    isRequired: true,
    // isReadOnly: true,
    bindFieldName: 'address',
    bindFieldVal: "",
    placeholder: "百度地图地址",
    appendRightBtnTxt: "地图",
    isAppendRightBtn: true,
    colSpan: 24,
    bindFieldVal: ""
  },
]

//楼宇基本信息
const buildFiledList = [
{
  type: 'text',
  label: '楼栋名称',
  isRequired: true,
  bindFieldName: 'spaceName',
  labelWidth: "150px",
  bindFieldVal: "",
  colSpan: 8,
},
// {
//   type: 'select',
//   label: '省',
//   placeholder: '请选择',
//   isRequired: true,
//   optionList: [],
//   keyName: 'provinceCode',
//   valName: 'provinceName',
//   bindFieldName: 'provinceCode',
//   bindFieldVal: "",
//   influenceFiledName: "cityCode"
// },
// {
//   type: 'select',
//   label: '市',
//   placeholder: '请选择',
//   isRequired: true,
//   optionList: [],
//   keyName: 'cityCode',
//   valName: 'cityName',
//   bindFieldName: 'cityCode',
//   bindFieldVal: "",
//   influenceFiledName: "areaCode"
// },
// {
//   type: 'select',
//   label: '区',
//   placeholder: '请选择',
//   isRequired: true,
//   optionList: [],
//   keyName: 'areaCode',
//   valName: 'areaName',
//   bindFieldName: 'areaCode',
//   bindFieldVal: ""
// },
{
  type: 'text',
  label: '建筑面积',
  inputType: "number",
  isRequired: true,
  bindFieldName: 'coveredArea',
  bindFieldVal: "",
  maxlength: 8,
},
{
  type: 'date',
  label: '开工建设时间',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldName: 'startWorkTime',
},
{
  type: 'date',
  label: '项目竣备时间',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldName: 'endWorkTime',
  bindFieldVal: ""
},
{
  type: 'select',
  label: '土地性质',
  placeholder: '请选择',
  isRequired: false,
  optionList: [],
  keyName: 'dictKey',
  valName: 'dictValue',
  bindFieldName: 'landType',
  bindFieldVal: ""
},
{
  type: 'text',
  label: '红线内土地面积',
  inputType: "number",
  isRequired: true,
  bindFieldName: 'landArea',
  bindFieldVal: "",
  maxlength: 8,
},
{
  type: 'text',
  label: '房产原值',
  inputType: "number",
  isRequired: true,
  bindFieldName: 'buildingOriginAmount',
  bindFieldVal: "",
  maxlength: 8,
},
{
  type: 'text',
  label: '设计单位',
  isRequired: true,
  bindFieldName: 'designUnits',
  labelWidth: "150px",
  bindFieldVal: ""
},
{
  type: 'text',
  label: '施工单位',
  isRequired: true,
  bindFieldName: 'constructionUnits',
  labelWidth: "150px",
  bindFieldVal: ""
},
{
  type: 'text',
  label: '监理单位',
  isRequired: true,
  bindFieldName: 'supervisionUnits',
  labelWidth: "150px",
  bindFieldVal: ""
},
{
  type: 'text',
  label: '最高楼层',
  inputType: "number",
  isRequired: true,
  bindFieldName: 'highLevel',
  bindFieldVal: ""
},
{
  type: 'text',
  label: '最低楼层',
  inputType: "number",
  isRequired: true,
  bindFieldName: 'lowLevel',
  bindFieldVal: ""
},
{
  type: 'date',
  label: '保修期',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldName: 'warrantyTime',
  bindFieldVal: ""
},
{
  type: 'text',
  label: '楼栋地址',
  isRequired: true,
  // isReadOnly: true,
  bindFieldName: 'spaceAddr',
  bindFieldVal: "",
  placeholder: "百度地图地址",
  appendRightBtnTxt: "地图",
  isAppendRightBtn: true,
  colSpan: 16,
  bindFieldVal: ""
},
]

//地下停车场
const underFloorParkFiledList = [{
    type: 'text',
    label: '停车场名称',
    isRequired: true,
    bindFieldName: 'parkName',
    labelWidth: "150px",
    bindFieldVal: ""
  },
  {
    type: 'select',
    label: '楼栋',
    isRequired: false,
    optionList: [],
    keyName: 'primaryKey',
    valName: 'spaceName',
    bindFieldName: 'buildingKey',
    bindFieldVal: "",
  },
  {
    type: 'select',
    label: '功能分区',
    isRequired: false,
    optionList: [],
    keyName: 'primaryKey',
    valName: 'partitionName',
    bindFieldName: 'functionalPartition',
    bindFieldVal: "",
  },
  // {
  //   type: 'select',
  //   label: '所在楼层',
  //   isRequired: false,
  //   optionList: [],
  //   keyName: 'floorKey',
  //   valName: 'floorName',
  //   bindFieldName: 'locationFloor',
  //   bindFieldVal: "",
  // },
  {
    type: 'text',
    label: '停车场编码',
    placeholder: '自动生成',
    isDisabled: true,
    colSpan: 8,
    bindFieldName: 'parkCode',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '总车位数',
    inputType: "number",
    isRequired: true,
    keyName: 'primaryKey',
    valName: 'name',
    bindFieldName: 'parkNum',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '已售车位数',
    inputType: "number",
    isRequired: true,
    keyName: 'primaryKey',
    valName: 'name',
    bindFieldName: 'ccParkNum',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '建筑面积',
    inputType: "number",
    isRequired: true,
    bindFieldName: 'buidArea',
    bindFieldVal: "",
    maxlength: 8,
  },
  {
    type: 'button',
    label: '停车场图片',
    bindFieldName: 'parkImg',
    bindFieldVal: "",
    buttonTxt: "查看",
    colSpan: 8
  },
  {
    type: 'button',
    label: '相关文件',
    bindFieldName: 'businessAttachment',
    bindFieldVal: "",
    buttonTxt: "查看",
    colSpan: 8
  }
]

//地面停车场
const onFloorParkFiledList = [{
    type: 'text',
    label: '停车场名称',
    isRequired: true,
    bindFieldName: 'parkName',
    labelWidth: "150px",
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '停车场位置描述',
    isRequired: true,
    bindFieldName: 'parkLocationDesc',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '停车场编码',
    isDisabled: true,
    placeholder: '自动生成',
    colSpan: 8,
    bindFieldName: 'parkCode',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '总车位数',
    inputType: "number",
    isRequired: true,
    keyName: 'primaryKey',
    valName: 'name',
    bindFieldName: 'parkNum',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '已售车位数',
    inputType: "number",
    isRequired: true,
    keyName: 'primaryKey',
    valName: 'name',
    bindFieldName: 'ccParkNum',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '建筑面积',
    inputType: "number",
    isRequired: true,
    bindFieldName: 'buidArea',
    bindFieldVal: "",
    maxlength: 8,
  },
  {
    type: 'button',
    label: '停车场图片',
    bindFieldName: 'parkImg',
    bindFieldVal: "",
    buttonTxt: "查看",
    colSpan: 8
  },
  {
    type: 'button',
    label: '相关文件',
    bindFieldName: 'businessAttachment',
    bindFieldVal: "",
    buttonTxt: "查看",
    colSpan: 8
  }
]

//税项
const taxFiledList = [{
    type: 'select',
    label: '税项类型',
    placeholder: '请选择',
    isRequired: true,
    labelWidth: "100px",
    optionList: [],
    keyName: 'key',
    valName: 'value',
    bindFieldName: 'taxType',
    bindFieldVal: "",
  },
  {
    type: 'text',
    label: '系数',
    inputType: "number",
    isRequired: true,
    bindFieldName: 'taxRate',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '扣除率',
    inputType: "number",
    isRequired: false,
    bindFieldName: 'deductRate',
    bindFieldVal: ""
  },
]

//事项
const matterFiledList = [{
  type: 'select',
  label: '事项',
  placeholder: '请选择',
  isRequired: true,
  labelWidth: "100px",
  optionList: [],
  keyName: 'chargeItemKey',
  valName: 'chargeItemAliasName',
  bindFieldName: 'calculateItemKey',
  bindFieldVal: "",
  colSpan:24
},
{
  type: 'select',
  label: '计算规则',
  placeholder: '请选择',
  isRequired: true,
  optionList: [{
    key:0,
    value:"-"
  },{
    key:1,
    value:"+"
  }],
  keyName: 'key',
  valName: 'value',
  bindFieldName: 'calculateMethod',
  bindFieldVal: "",
  colSpan:24
},
]


export {
  projectFiledList,
  buildFiledList,
  onFloorParkFiledList,
  underFloorParkFiledList,
  taxFiledList,
  matterFiledList,
}
